<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>在线换证</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <link rel="stylesheet" href="css/common.css">
    <link rel="stylesheet" href="css/personalCenter.css">
</head>
<body>
<!------IE浏览器判断------>
<!--[if lt IE 9]>
<script type="text/javascript" src="https://cdn.bootcss.com/html5shiv/3.7.3/html5shiv.min.js">
</script>
<![endif]-->
<jsp:include page="head.jsp"></jsp:include>
<!------主内容区------>
<div class="main">
    <div class="poistion">
        <h4 class="clearfix">
            <span class="icon icon1"></span><span> 首页 > 个人中心 > 修改密码</span>
        </h4>
    </div>
    <div id="aside">
        <div class="aside-title">
            <h3>个人中心</h3>
        </div>
        <div class="aside-content">
            <ul class="itemlist">
                <li class="item"><a href="personlCenter.jsp">基本信息</a><span class="icon2"></span></li>
                <li class="item"><a href="personalChange.jsp">修改信息</a><span class="icon2"></span></li>
                <li class="item"><a href="changePassword.jsp">修改密码</a><span class="icon2"></span></li>
                <li class="item"><a href="replacement.jsp">会员升级</a><span class="icon2"></span></li>
            </ul>
        </div>
    </div>
    <div class="modal" id="newsLis">
        <div id="newsList">
            <div class="newsList-content">
                <div class="newsList-title">
                    <h3 class="pull-left left">会员升级</h3>
                    <i></i>
                </div>
                <div class="newList-main">
                    <div class="formes">
                      <h3><span class="star">*</span>上传会员级别变更申请表（此文件为扫描件上传）</h3>
                        <div class="inputCertife">
                            <form action="company_upLevel" enctype="multipart/form-data" method="post" id="formId">
                           <input type="hidden" name="company.comp_id" value="${comp.comp_id }">
                            <div class="z_photo upimg-div clearfix item1">
                                <section class="z_file fl">
                                    <img src="images/pic13.png" class="add-img">
                                    <input type="file"  name="upload" id="file1" class="file1"
                                           value=""
                                           accept="image/jpg,image/jpeg,image/png,image/bmp" multiple/>
                                </section>
                            </div>
                            <div class="btn">
                                <input type="button" value="确认提交" id="submits" onclick="submitForm()">
                            </div>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<div class="covers"></div>
<div id="alerts">
    <h3>提示</h3>
    <h4>mima</h4>
</div>
<!------页脚------>
<jsp:include page="foot.jsp"></jsp:include>
<!------JS部分------>
<script src="js/imgUp.js"></script>
<script>
 function submitForm(){
	 var a=$("#file1").val();
	    if(a==""){
	        alert("请上传证件");
	        return false
	    }
	    setTimeout('$("#alerts").fadeOut()', 2000);
	    popup($("#alerts"));
	    $(" #alerts h4").text("申请成功，等待审核中!");
	    $("#formId").submit();
	    
 }
 
 function popup(popupName) {
     var _scrollHeight = $(document).scrollTop(),//获取当前窗口距离页面顶部高度
         _windowHeight = $(window).height(),//获取当前窗口高度
         _windowWidth = $(window).width(),//获取当前窗口宽度
         _popupHeight = popupName.height(),//获取弹出层高度
         _popupWeight = popupName.width();//获取弹出层宽度
     _posiTop = (_windowHeight - _popupHeight-150) / 2 + _scrollHeight;
     _posiLeft = (_windowWidth - _popupWeight+300) / 2;
     popupName.css({"left": _posiLeft + "px", "top": _posiTop + "px", "display": "block"});//设置position
 }

</script>
</body>
</html>